package com.example.app;

import com.example.config.SpringConfig7;
import com.example.config.SpringConfig8;
import com.example.service.BookService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App8 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig8.class);
        BookService bookService = applicationContext.getBean("bookService", BookService.class);
        bookService.check();

    }
}
